<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><%= controller.action_name %></title>
	<!-- css --> 
	<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.1/build/reset-fonts-grids/reset-fonts-grids.css" /> 
	<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.1/build/base/base-min.css" /> 
	<style type="text/css">
		#hd { text-align: right;  padding: 1em 0; }
		#ft { text-align: center; font-size:85%; padding: 1em 0; }
		table { width: 100%; }
	</style>
</head>
<body>
<div id="doc" class="yui-t7">
	<div id="hd">
		<% if logged_in? %>
			Logged in as <strong><%= link_to current_user.name, current_user %></strong> |
         <%= link_to 'Edit Your Account', edit_user_path(current_user) %> | 
			<%= link_to 'Log Out', logout_url %>
		<% else %>
			<%= link_to 'Log In', new_session_path %> | 
			<%= link_to 'Sign Up', new_user_path %> |      
			<%= link_to 'Forgot Password?', forgot_password_path %> 
		<% end %>
	</div>
	<div id="bd">
		<div class="yui-g">
			<!-- FLASH MESSAGES -->
			<% flash.each do |key, msg| %>
				<%= content_tag :div, msg, :id => key, :class => 'flash' %>
			<% end %>
			<!-- YOUR DATA GOES HERE -->
			<%= yield  %>
		</div>
	</div>
	<div id="ft">
		<% if logged_in? %>
		<p>
			<%= link_to 'Groups', groups_path %> | 
			<%= link_to 'Users', users_path %> 
		</p>
		<% end %>
	</div>
</div>
</body>
</html>
